package cn.tedu.spring.bean;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ruoLi
 */
public class TestUser {
    @Test
    public void beanTest(){
        ApplicationContext context=new ClassPathXmlApplicationContext("bean.xml");
        User user= context.getBean("user",User.class);
        System.out.println(user);
    }
    @Test
    public void test1() {

    }
}
